import request from '@/utils/request'

export function getOutsData(dispatchId) {
  return request({
    url: `/getOutsWeb/${dispatchId}`,
    method: 'get',
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

export function selectStrokeNIHSS(dispatchId) {
  return request({
    url: `/selectStrokeNIHSS?dispatchId=${dispatchId}`,
    method: 'get',
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function saveOutsData(data) {
  return request({
    url: '/saveOuts',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function getStrokeOutsData(data) {
  return request({
    url: `/getWebStrokeOuts`,
    params: data,
    method: 'get',
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function saveStrokeOutsData(data) {
  return request({
    url: '/saveStrokeOuts',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

export function getDepartmentList(data) {
  return request({
    url: `getDepartmentList`,
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
